console.log(__filename);

var action = {
    getJson: function (path, callback) {
        var fs = require("fs");
        fs.readFile("json/" + path + ".json", function (err, res) {
            if (err == null) {
                callback("err");
            } else {
                callback(res);
            }
        });
    },
    getActionJson: function (fileName, callback) {
        getJson("action/" + fileName, callback)
    }
}

module.exports.action = action;